<meta charset="utf-8">
<input id="d1"/> + <input id="d2"/> <input id="d3" type="button" value="="/> <input id="d4"/>

<script>
    d3.onclick = function(){
        d4.value = parseFloat(d1.value)+parseFloat(d2.value);
    }
</script>